package com.group.service;

import com.group.commons.entity.patient.Receiver;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

/**
 * (Receiver)表服务接口
 *
 * @author makejava
 * @since 2022-06-07 11:12:28
 */
public interface ReceiverService {

    /**
     * 通过ID查询单条数据
     *
     * @param receiverid 主键
     * @return 实例对象
     */
    Receiver queryById(Integer receiverid);

    /**
     * 分页查询
     *
     * @param receiver 筛选条件
     * @param pageRequest      分页对象
     * @return 查询结果
     */
    Page<Receiver> queryByPage(Receiver receiver, PageRequest pageRequest);

    /**
     * 新增数据
     *
     * @param receiver 实例对象
     * @return 实例对象
     */
    Receiver insert(Receiver receiver);

    /**
     * 修改数据
     *
     * @param receiver 实例对象
     * @return 实例对象
     */
    Receiver update(Receiver receiver);

    /**
     * 通过主键删除数据
     *
     * @param receiverid 主键
     * @return 是否成功
     */
    boolean deleteById(Integer receiverid);

}
